package com.ddtech.business.web.res;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @version v1.0
 * @ClassName:AnswerPcVo description：
 * @author:wei_zhang(xiao)
 * @date: 2023-06-01 17:24
 */
@Data
public class AnswerPcVo {

    @ApiModelProperty(value = "id")
    private String id;

    @ApiModelProperty(value = "pid")
    private String pid;

    @ApiModelProperty(value = "章节id")
    private String chapterId;

    @ApiModelProperty(value = "章节名称")
    private String chapterName;

    @ApiModelProperty(value = "课程id")
    private String courseId;

    @ApiModelProperty(value = "课程名称")
    private String courseName;

    @ApiModelProperty(value = "问答内容")
    private String answerContent;

    @ApiModelProperty(value = "1、提问、2评论")
    private Integer type;

    @ApiModelProperty(value = "用户id")
    private String userId;

    @ApiModelProperty(value = "用户名称")
    private String userName;

    @ApiModelProperty(value = "是否公开")
    private Integer isPublic;

    @ApiModelProperty(value = "头像地址")
    private String avatar;

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
}
